<ul class="scrollspy-nav">
  @for (heading of headings; track heading) {
    <li>
      <a routerLink="." [fragment]="heading.id">{{ heading.innerHTML }}</a>
    </li>
  }
</ul>